package com.randy.riolis.kontrakan;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class DetailActivity extends Activity {

	private TextView alamat, harga;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_detail);

		alamat = (TextView) findViewById(R.id.detail_alamat_kontrakan);
		harga = (TextView) findViewById(R.id.detail_harga_kontrakan);

		Bundle b = getIntent().getExtras();
		if (b != null) {
			alamat.setText(b.getString("alamat"));
			harga.setText(b.getShort("harga"));
		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_detail, menu);
		return true;
	}

}
